package com.ruoyi.monitormanage.controller;

import com.ruoyi.common.core.domain.dto.QualityMonitorDataDTO;
import com.ruoyi.common.core.domain.Quaparameter;
import com.ruoyi.monitormanage.domain.PersonResult;
import com.ruoyi.monitormanage.domain.TestWholeDataExt;
import com.ruoyi.monitormanage.service.QualityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("/quality")
public class QualityController {
    @Autowired
    private QualityService qualityService;
    @PostMapping("/getqualitycontrol")
    public Map<String,Object> getqualitycontrol(@RequestBody Quaparameter quaparameter){
        return qualityService.getqualitycontrol(quaparameter);
    }
    @PostMapping("/getqualityresult")
    public PersonResult getqualityresult(@RequestBody TestWholeDataExt testWholeDataExt){
        return qualityService.getqualityresult(testWholeDataExt);
    }

    @PostMapping("/qualityMonitorData")
    public List<QualityMonitorDataDTO> qualityMonitorData(@RequestBody Quaparameter quaparameter){
        return qualityService.qualityMonitorData(quaparameter);

    }
}
